.CouponPreview {
  display: flex;
  justify-content: center;

  .CouponPreviewContent {
    width: 320px;
    height: 568px;
    background: #f9f9f9;
    box-shadow: 0 0 0 1px #c5c5c5;
  }

  .CouponHeader {
    background-image: url("./phone-header.png");
    background-size: 320px 54.6px;
    background-repeat: no-repeat;
    height: 54.6px;

    .CouponTitle {
      color: #fff;
      position: relative;
      top: 22px;
      text-align: center;
      font-size: 16px;
      font-weight: 600;
    }
  }

  .CouponType {
    color: #ccc;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }

  .CouponContent {
    color: #fff;
    background: linear-gradient(0deg, rgb(254, 98, 99), rgb(254, 49, 78));

    .CouponName {
      height: 60px;
      padding: 0 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 18px;
      line-height: 60px;
      max-width: 290px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .CouponValue {
      font-size: 30px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      padding: 0 20px;
      margin-bottom: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .CouponMinAmount {
      color: #fff;
      text-align: center;
    }

    .CouponValidatePeriod {
      color: hsla(0, 0%, 100%, .5);
      padding: 0 10px 10px;
    }

    .CouponContentTail {
      height: 8px;
      background-image: radial-gradient(rgb(249, 249, 249) 0px, rgb(249, 249, 249) 5px, rgb(254, 98, 99) 5px, rgb(254, 98, 99) 100%);
      background-size: 15px 15px;
      content: " ";
    }
  }

  .CouponDescriptionTitle {
    color: #333;
    line-height: 40px;
    padding-left: 10px;
  }

  .CouponDescriptionDetail {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    max-height: 200px;
    min-height: 22px;
    overflow: hidden;
    padding: 10px;
    text-overflow: ellipsis;
    white-space: pre-line;
    word-break: break-word;

    :global {
      .ant-typography {
        margin-bottom: 0;
      }
    }
  }
}
